################################################################################
# FILE       : .wgetrc
# DESCRIPTION: Configuration file for Wget.
# AUTHOR     : SVAKSHA :: http://svaksha.github.io/yaksha
# SOURCE     : http://svaksha.github.io/yaksha
# COPYRIGHT© : 2005-Now SVAKSHA (http://svaksha.com/pages/Bio) AllRightsReserved
# LICENSE    : GNU AGPLv3 and subject to the terms and conditions in the LICENSE.md 
#              (https://github.com/svaksha/yaksha/blob/master/LICENSE.md) file being met.
# DATES      : Created:2008mar31 - Updated:2015dec30
################################################################################
### https://www.gnu.org/software/wget/manual/html_node/Sample-Wgetrc.html
### Sample Wget initialization file .wgetrc
###
## You can use this file to change the default behaviour of wget or to
## avoid having to type many many command-line options. This file does
## not contain a comprehensive list of commands -- look at the manual
## to find out what you can put into this file. You can find this here:
##   $ info wget.info 'Startup File'
## Or online here:
##   https://www.gnu.org/software/wget/manual/wget.html#Startup-File
##
## Wget initialization file can reside in /usr/local/etc/wgetrc
## (global, for all users) or $HOME/.wgetrc (for a single user).
##
## Local settings (for a user to set in his $HOME/.wgetrc).  It is
## *highly* undesirable to put these settings in the global file, since
## they are potentially dangerous to "normal" users.
##
## Even when setting up your own ~/.wgetrc, you should know what you
## are doing before doing so.
##++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


#-------------------------------------------------------------------------------
# You can set retrieve quota for beginners by specifying a value
# optionally followed by 'K' (kilobytes) or 'M' (megabytes).  The
# default quota is unlimited.
#-------------------------------------------------------------------------------
quota = inf

#-------------------------------------------------------------------------------
# You can lower (or raise) the default number of retries when
# downloading a file (default is 20).
#-------------------------------------------------------------------------------
tries = 5

#-------------------------------------------------------------------------------
# Lowering the maximum depth of the recursive retrieval is handy to prevent newbies
# from going too "deep" when they unwittingly start the recursive retrieval.  
# The default is 5.
#-------------------------------------------------------------------------------
reclevel = 5

#-------------------------------------------------------------------------------
# By default Wget uses "passive FTP" transfer where the client
# initiates the data connection to the server rather than the other
# way around.  That is required on systems behind NAT where the client
# computer cannot be easily reached from the Internet.  However, some
# firewalls software explicitly supports active FTP and in fact has
# problems supporting passive transfer.  If you are in such
# environment, use "passive_ftp = off" to revert to active FTP.
#-------------------------------------------------------------------------------
#passive_ftp = off

#-------------------------------------------------------------------------------
# The "wait" command below makes Wget wait between every connection.
# If, instead, you want Wget to wait only between retries of failed
# downloads, set waitretry to maximum number of seconds to wait (Wget
# will use "linear backoff", waiting 1 second after the first failure
# on a file, 2 seconds after the second failure, etc. up to this max).
#-------------------------------------------------------------------------------
waitretry = 10

# Retry even when the connection was refused
#-------------------------------------------------------------------------------
retry_connrefused = on

#-------------------------------------------------------------------------------
# Set this to on to use timestamping by default:
# Use the server-provided last modification date, if available.
#-------------------------------------------------------------------------------
timestamping = on

#-------------------------------------------------------------------------------
# It is a good idea to make Wget send your email address in a `From:'
# header with your request (so that server administrators can contact
# you in case of errors).  Wget does *not* send `From:' by default.
#-------------------------------------------------------------------------------
#header = From: Your Name <username@site.domain>

#-------------------------------------------------------------------------------
# You can set up other headers, like Accept-Language.  Accept-Language
# is *not* sent by default.
#-------------------------------------------------------------------------------
header = Accept-Language: en

#-------------------------------------------------------------------------------
# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
#-------------------------------------------------------------------------------
#https_proxy = http://proxy.yoyodyne.com:18023/
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/

#-------------------------------------------------------------------------------
# If you do not want to use proxy at all, set this to off.
#-------------------------------------------------------------------------------
use_proxy = on

#-------------------------------------------------------------------------------
# Customize the retrieval outlook with options:: "default/ binary/ mega/ micro"
#-------------------------------------------------------------------------------
#dot_style = default

#-------------------------------------------------------------------------------
# Setting this to off makes Wget not download /robots.txt.  Be sure to
# know *exactly* what /robots.txt is and how it is used before changing
# the default!
#-------------------------------------------------------------------------------
robots = on

#-------------------------------------------------------------------------------
# It can be useful to make Wget wait between connections. Set this to the number
# of seconds you want Wget to wait.
#-------------------------------------------------------------------------------
wait = 10

#-------------------------------------------------------------------------------
# Wait 60 seconds before timing out. This applies to all timeouts: DNS, connect 
# and read. (The default read timeout is 15 minutes!)
#-------------------------------------------------------------------------------
timeout = 60

#-------------------------------------------------------------------------------
# You can force creating directory structure, even if a single is being
# retrieved, by setting this to on.
#-------------------------------------------------------------------------------
#dirstruct = off

#-------------------------------------------------------------------------------
# You can turn on recursive retrieving by default (don't do this if
# you are not sure you know what it means) by setting this to on.
#-------------------------------------------------------------------------------
#recursive = off

#-------------------------------------------------------------------------------
# To always back up file X as X.orig before converting its links (due
# to -k / --convert-links / convert_links = on having been specified),
# set this variable to on:
#-------------------------------------------------------------------------------
#backup_converted = off

# To have Wget follow FTP links from HTML files by default, set this to "on":
#-------------------------------------------------------------------------------
follow_ftp = off

# Add a `.html` extension to `text/html` or `application/xhtml+xml` files that 
# lack one, or a `.css` extension to `text/css` files that lack one.
#-------------------------------------------------------------------------------
adjust_extension = on

# Print the HTTP and FTP server responses
#-------------------------------------------------------------------------------
server_response = on

# Turn on to prevent following non-HTTPS links when in recursive mode
#-------------------------------------------------------------------------------
#httpsonly = off

# Tune HTTPS security (auto, SSLv2, SSLv3, TLSv1, PFS)
#-------------------------------------------------------------------------------
secureprotocol = auto

# To try ipv6 addresses first:
#-------------------------------------------------------------------------------
prefer-family = IPv6

# Set default IRI support state
#-------------------------------------------------------------------------------
#iri = off

# Force the default system encoding
#-------------------------------------------------------------------------------
localencoding = UTF-8

# Force the default remote server encoding
#-------------------------------------------------------------------------------
remoteencoding = UTF-8

# Use the last component of a redirection URL for the local file name
#-------------------------------------------------------------------------------
trust_server_names = on

# Disguise as IE 9 on Windows 7
#-------------------------------------------------------------------------------
user_agent = Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko
#older browser
#user_agent = Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)


